package tool.zyk.consts;

/**
 * Rpc 常量类
 */
public interface RpcCommonConst {

    //协议魔法数值
    byte[] MAGIC_NUM = new byte[]{1, 1, 2, 3};

    //默认端口
    int DEFAULT_PORT = 9092;

    Long DEFAULT_WAIT_TIME = 1000L;

    String DEFAULT_CLUSTER_NAME = "DEFAULT";


    interface StatusCode {
        Integer SUCCESS_CODE = 2001;

        Integer FAILED_CODE = 3001;
    }
}
